import { reqFindHeadCategory } from '@/api/home'

export default {
  namespaced: true,
  state() {
    return {
      list: []
    }
  },
  mutations: {
    setList(state, list) {
      state.list = list
    }
  },
  actions: {
    async getCateList({ commit }) {
      const res = await reqFindHeadCategory()
      console.log(res, 114)
      // if (res.code == 1) {
      commit('setList', res.result)
      // }
    }
  },
  getters: {}
}
